//
//  ClassificationDetailVC.m
//  HomeIn
//
//  Created by 张涛 on 15/11/6.
//  Copyright © 2015年 ZZP. All rights reserved.
//

#import "ClassificationDetailVC.h"
#import "ClassificationModel.h"
//#import "ClassDetailCollectionVCell.h"
@interface ClassificationDetailVC ()<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
@property(nonatomic,strong)UIWebView *myWebView;
@property(nonatomic,strong)UICollectionView *detialCollection;
@property(nonatomic,strong)NSMutableArray *allArray;
@property(nonatomic,strong)MBProgressHUD *hud;
@property(nonatomic,assign)BOOL isUpLoading;
@property(nonatomic,assign)NSInteger currentPage;

@end

@implementation ClassificationDetailVC
- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationItem.title = self.model.title;
    self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"iconfont-fanhui.png"] style:UIBarButtonItemStyleDone target:self action:@selector(leftBarButtonItemAction:)];

    self.myWebView=[[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 375*WIDTH, (667-49)*HEIGHT)];
    NSURL *url=[NSURL URLWithString:self.model.url];
    NSURLRequest *request=[NSURLRequest requestWithURL:url];
    [self.myWebView loadRequest:request];
    [self.view addSubview:self.myWebView];
    //    self.myWebView.scrollView.delegate=self;
    self.myWebView.scrollView.userInteractionEnabled=YES;
     
}
-(void)leftBarButtonItemAction:(UIBarButtonItem *)barButtonItem
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
